<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-Cache" />
<meta name="MobileOptimized" content="320">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;">
<title>掌上温泉季</title>
<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
<link href="images_yellow/main.css" rel="stylesheet" type="text/css" />
<link href="css/spring.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	//立即投票
	function voteNow(voteId,voteTitle) {
		window.location.href="getVoteItemList.htm?voteId=" + voteId+"&voteTitle="+encodeURI(voteTitle);
	}

	
</script>
</head>
<body>
	<div id="vote_main">
		<%@include file="../top.jsp"%>
	<div id="mainmenu">
		<span class="crumbs">
			<%@include file="../menu.jsp"%>
			&gt; 爽投票
		</span>
	</div>
		<div class="vote_div">
			<c:forEach var="vote" items="${voteList }" varStatus="status">
				<div style="width: 300px;margin: 20px auto;">
					<div class="vote_title_a">
						<div class="vote_title">${vote.title}</div>
						<div class="vote_body">${vote.body}</div>
					</div>
					<c:if test="${status.count<=4 }">
						<div class="vote_button" style="background-image: url('images/voteBtn${status.count}.png');g" onclick="voteNow('${vote.identifier}','${vote.title}');"></div>
					</c:if>
					<c:if test="${status.count>4 && status.count%4>0 }">
						<div class="vote_button" style="background-image: url('images/voteBtn${status.count%4}.png');g" onclick="voteNow('${vote.identifier}','${vote.title}');"></div>
					</c:if>
					<c:if test="${status.count>4 && status.count%4==0 }">
						<div class="vote_button" style="background-image: url('images/voteBtn4.png');g" onclick="voteNow('${vote.identifier}','${vote.title}');"></div>
					</c:if>
					<div style="clear: both;"></div>
					<hr>
				</div>
			</c:forEach>
		</div>
		<%@include file="../footer.jsp"%>
	</div>
</body>
</html>